package com.easylinkin.linkappapi.config.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.easylinkin.linkappapi.config.entity.SysDictItem;

import java.util.List;

/**
 * @author chenyin
 * @date 2024/02/18
 */
public interface SysDictItemService  extends IService<SysDictItem> {
  /**
   * 同步数据到缓存
   * @param syncAll
   */
  void syncCache(boolean syncAll);
  /**
   * 通过字典分类ID删除字典项
   * @param dictId
   */
  void deleteByDictId(Long dictId);

  SysDictItem selectByDictItem(String dictCode,String itemValue);

  List<SysDictItem> selectByDictItems(String dictCode);

}